
Ext.define('ZO0.store.shipping.USPSZone', {
    extend: 'Ext.data.Store',

    model: 'ZO0.model.shipping.USPSZone',

    pageSize: 15,
    //autoLoad: true,
    autoSync: true,

    proxy: {
        type: 'ajax',
        api: {
            read: 'what?do=ship&ex=selectUspsZone',
            update: 'what?do=ship&ex=updateUspsZone'
//                      read: QueryDatabase.getEmployees,
//                      create: QueryDatabase.createEmployee,
//                      update: QueryDatabase.updateEmployee,
//                      destroy: QueryDatabase.removeEmployee,
        },
        reader: {
            type: 'json',
            root: 'data',
            successProperty: 'success',
            totalProperty: 'total'
        }
    }
    //When the admin panel is rendered I execute the following function:
//    loadStores: function() {
//        USPSStore.load();
//    }
});
